#include "NVIC.h"
#include "stm32f10x.h"
void User_NVIC_Config(void)
 {
     NVIC_InitTypeDef NVIC_Config;
     
      //?????????????
      NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
 
     //???NVIC_InitTypeDef???
     NVIC_Config.NVIC_IRQChannel = USART1_IRQn;
     NVIC_Config.NVIC_IRQChannelPreemptionPriority = 1;
     NVIC_Config.NVIC_IRQChannelSubPriority = 1;
     NVIC_Config.NVIC_IRQChannelCmd = ENABLE;
 
     //???NVIC?????
     NVIC_Init(&NVIC_Config);
     
 }
 
 